package com.example.demo.config.nacos;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.List;

/**
 * 运营活动配置
 */
@Data
//@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "activity.newuser2024")
public class ActivityConfig {

    /**
     * 活动开始时间戳,单位:毫秒
     * 默认:2024-03-01 00:00:00
     */
    private Long startTimeStamp = 1709222400000L;

    /**
     * 活动结束时间戳,单位:毫秒
     * 默认:2099-01-01 00:00:00
     */
    private Long endTimeStamp = 4070880000000L;

    /**
     * 优惠券包ID
     */
    private String couponPackageId = "YHQB20240319175649001";

    /**
     * 优惠券ID列表
     */
    private List<String> couponIds = Arrays.asList("YHQ20240318154214001", "YHQ20240318154040001", "YHQ20240318153920001", "YHQ20240318153726001");


}